<%--
 * action-2.jsp
 *
 * Copyright (C) 2013 Universidad de Sevilla
 * 
 * The use of this project is hereby constrained to the conditions of the 
 * TDG Licence, a copy of which you may download from 
 * http://www.tdg-seville.info/License.html
 --%>

<%@page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>

<%@taglib prefix="jstl" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles"%>
<%@taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@taglib prefix="security"
	uri="http://www.springframework.org/security/tags"%>
<%@taglib prefix="display" uri="http://displaytag.sf.net"%>
<%@ taglib prefix="acme" tagdir="/WEB-INF/tags"%>

<form:form action="registration/participant/edit.do"
	modelAttribute="registration">

	<form:hidden path="id" />
	<form:hidden path="version" />
	<form:hidden path="event" />
	<form:hidden path="participant" />

	<acme:textbox code="registration.date" path="date"
		readonly="true" />
	
	

	<jstl:if test="${!create}">
		<jstl:if test="${expired}">
			<acme:textbox code="registration.assessment.rating" path="assessment.rating"/>
			<acme:textbox code="registration.assessment.text" path="assessment.text"/>	
		</jstl:if>
	</jstl:if>

	
		<acme:submit name="save" code="registration.save" />
		<jstl:if test="${!create}">
		<jstl:if test="${delete}">
			<acme:submit name="delete" code="registration.delete" />
			</jstl:if>
		</jstl:if>
		<acme:cancel url="/registration/participant/list.do" code="registration.cancel" />
</form:form>


